//
//  ViewController.m
//  16-UICollectionViewCycleImage
//
//  Created by Snow on 16/8/4.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "ViewController.h"
#import "GXCycleImage.h"
@interface ViewController ()<WDLCycleImageDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSMutableArray *arr = [NSMutableArray array];
    for (int i = 0; i < 5; i++) {
        [arr addObject:[NSString stringWithFormat:@"%d.jpg", i]];
    }
    GXCycleImage *cycy = [[GXCycleImage alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 200)];
    
    cycy.delegate = self;
    
    [self.view addSubview:cycy];
    cycy.arrayImage = arr;
    
//    GXCycleImage *cycle = [[GXCycleImage alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 200)];
//    [self.view addSubview:cycle];
    
    
}

- (NSString *)backOneNsstring
{
    return @"8";
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
